import request from '../utils/http.js';

//获取token
export function getToken(data) {
	return request({
		url: '/user/getToken',
		method: 'POST',
		data
	})
}

//获取用户信息
export function getUserInfo() {
	return request({
		url: '/user/get',
		method: 'GET',
	})
}

//保存用户信息
export function updateUser(data) {
	return request({
		url: '/user/update',
		method: 'POST',
		data
	})
}